﻿<?php
include('header.php');
?>
<body onload="setFocus('w')">     
<div id="login"><a href="login.php">Login<a/></div>
<div>
<form id="searchbox" onsubmit="javascript:return false;"  method="get" action="/c/lookup.php">
<input autocomplete="off" onblur="showOnBlur('w')"  onfocus="clearOnFocus('w')" onkeyup="Lookup()" id="w" type="text" name="w" />
<input style="display:none;" type="submit" value="search" onclick="javascript:Lookup()"/>
</form>
</div>
<div id="waiting">
</div>
<div id="likeword">
</div>

<div id="resultbox" oncontextmenu="javascript:return contextmenu.Display(event);">
</div>
<div id="reviewbox">
</div>
<?php
include('footer.php');
?>

 

<script type="text/javascript">
    window.onload = function()
    {
        oBase = document.getElementById('resultbox');        
        var Arguments = {
            Base: oBase,
            Width: 200,
            FontColor: null,
            HoverFontColor: null,
            HoverBackgroundColor: null,
            HoverBorderColor: "#ffffff",
            ClickEventListener: OnClick
        };
        
        contextmenu = new CustomContextMenu(Arguments);                         
        contextmenu.AddItem('http://www.porticomag.com/graphics/icon_add.gif', 'Add', false, 'Add');
        contextmenu.AddItem('http://www.wiscosurvey.com/webhelp/images/save-chart.bmp', 'Review', false, 'Save');
        contextmenu.AddSeparatorItem();
        contextmenu.AddItem('http://isp-control.net/ispcp_svn/tags/omega-1.0.0-rc3/gui/themes/omega_original/images/content/table_icon_update.png', 'Lookup', false, 'Lookup');
        contextmenu.AddSeparatorItem();
        contextmenu.AddItem('http://hungnguyen.gov.vn/DesktopModules/Forum/Themes/Default/images/s_cancel.png', 'Clear', false, 'Clear');
    }
    
    var OnClick = function(Sender, EventArgs)
    {
        switch(EventArgs.CommandName)
        {
            case 'Add':             
          		addFavWord();
                break;
            case 'Save':
				reViewFavWord();                
                break;
            case 'Lookup':
			
			Lookup2(getSelText());
                
                break;
            case 'Clear':
				clearFavWord();
               break;
        }
        
        contextmenu.Hide();   
    }
    
    window.onunload = function(){ contextmenu.Dispose(); }
	
	

	
    </script>














